package com.company.project.dao;

import com.company.project.core.Mapper;
import com.company.project.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends Mapper<SysUser> {
    /**
     * 统计用户查询
     * @param userName
     * @return
     */
    Integer countSysUserList(@Param("userName") String userName, @Param("keyword") String keyword);


    /**
     * 查询用户列表
     * @param userName
     * @param start
     * @param end
     * @return
     */
    List<SysUser> getSysUserList(@Param("userName") String userName
            , @Param("keyword") String keyword, @Param("start") Integer start, @Param("end") Integer end);


    int changeStatus(@Param("userId") int userId,int status);

}